﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Supplier_Default : System.Web.UI.Page
{
    protected override void OnPreInit(EventArgs e)
    {
        //if (UserAccess.CurrentUser != null)
        //{
        //    if (UserAccess.IsCurrentUser(Enums.UserTypes.Admin))
        //        this.MasterPageFile = "~/Admin/AdminMasterPage.master";
        //} 
        
        base.OnPreInit(e);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        ((BaseMasterPage)this.Master).CurrentPage = PageConfig.Pages.SupplierDefault;
        if (!((BaseMasterPage)this.Master).AuthorizeCurrentUser())
            return;
    }
}
